package com.yulan.bankback.mapper.bank;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yulan.bankback.entity.model.bank.Notice;
import com.yulan.bankback.entity.dto.bank.NoticeDto;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface NoticeMapper extends BaseMapper<Notice> {

    @Select("select id as noticeId, title, create_time from notice where type = 'safe_notice'")
    List<NoticeDto> getAllSafeNoticeIds();
}
